package cn.kgc.client;

import cn.kgc.base.vo.OrderItemVo;
import cn.kgc.commons.vo.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * <p></p>
 *
 * @author 李孟鸠
 * @Date: 2023年01月02日11:23
 */
@FeignClient(value = "mall-cart",path = "/cart",fallback = CartFeignClientImpl.class)
public interface CartFeignClient {

   @GetMapping("/getOrderItemVo")
   Result<List<OrderItemVo>>
   getOrderItemVo(@RequestParam(name = "memberId") long memberId);
}
